<?php

namespace System\Model;

class News {

    public $news_Id;
    public $news_Title;
    public $news_link;
    public $news_Description;
    public $news_Date;
    public $news_Active;
    public $news_Content;
    public $news_imgThumb;

    public function exchangeArray($data) {
        $this->news_Id = (isset($data["news_Id"])) ? $data["news_Id"] : null;
        $this->news_Title = (isset($data["news_Title"])) ? $data["news_Title"] : null;
        $this->news_link = (isset($data["news_link"])) ? $data["news_link"] : null;
        $this->news_Description = (isset($data["news_Description"])) ? $data["news_Description"] : null;
        $this->news_Date = (isset($data["news_Date"])) ? $data["news_Date"] : null;
        $this->news_Active = (isset($data["news_Active"])) ? $data["news_Active"] : null;
        $this->news_Content = (isset($data["news_Content"])) ? $data["news_Content"] : null;
        $this->news_imgThumb = (isset($data["news_imgThumb"])) ? $data["news_imgThumb"] : null;
    }

}
